package com.flyco.modules.stm.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyco.modules.stm.entity.StmStock;
import com.baomidou.mybatisplus.extension.service.IService;
import com.flyco.modules.stm.vo.StmStockVO;

import java.util.List;
import java.util.Set;

/**
 * @Description: 门店库存
 * @Author: flyco
 * @Date:   2020-10-20
 * @Version: V1.0
 */
public interface IStmStockService extends IService<StmStock> {
    public void stockInOut(List<StmStockVO> stockVOList, Long storeId, String inoutType, String bizType,
                                      String sourceType, String sourceId, String changeReason);

    Page<StmStock> getStockPage(Page<StmStock> page, Wrapper<StmStock> wrapper);

    List<StmStock> initStmStock(Long storeId, Set<Long> productIds);
}
